package com.jiepos.mpos.biz.customer.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.customer.service.CustomBankcardInfoService;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 * 
 * 会员银行卡信息管理类
 * @ProjectName:  [mpos] 
 * @Package com.jiepos.mpos.biz.customer.controller 
 * @author 张磊
 * @version 1.0
 * @since 2017年11月8日 下午4:58:34
 * @history（历次修订内容、修订人、修订时间等）
 * @UpdateRemark [说明本次修改内容]
 * @Copyright (c) 2017 江苏杰博实信息技术有限公司
 */
@Controller
@RequestMapping("/custombankcard")
public class CustomBankcardInfoController extends BaseController {

	@Autowired
	private CustomBankcardInfoService customBankcardInfoService;
	/**
	 * 会员银行卡信息页面
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping("/getCustomBankcardList.do")
	public ModelAndView getCustomBankcardList(HttpServletRequest request, HttpServletResponse response){
		
		ModelAndView model = new ModelAndView("/module/customer/custombankcardinfo/custombankcardinfo_list");
		return super.getDetail(request, response, model);
	}
	
	/**
	 * 获取会员银行卡信息Json
	 * @param request
	 * @param pagination
	 * @param custom_no
	 * @param phone
	 * @param name
	 * @param bank_nm
	 * @param account_attr
	 * @param settle_acct
	 * @return
	 */
	@RequestMapping("/getCustomBankcardListJson.do")
	@ResponseBody
	public Map getCustomBankcardListJson(HttpServletRequest request,Pagination pagination,
			String custom_no,String phone,String name,String settle_bank_no,String account_attr,String settle_acct,String audit_st){
		return customBankcardInfoService.getCustomBankcardListJson(request,pagination,custom_no,phone,name,settle_bank_no,account_attr,settle_acct,audit_st);
	}
	
	
	
	
}
